<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/project.js"></script>-->
</head>
<body onload="javascript: mrainfopCiaSum(); moveInsertPage('mraassetp','${requestScope.update }')">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">RA자산평가</span>
	      		<span class="align-right">상태 :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[1].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	
	 <div class="box-container2" style="height: 548px; overflow: auto; overflow-x: hidden;">
	<%--
	 <div class="box-container2" style="height: 471px">
	  --%>
		 <form action="riskIAction.do" method="post" name="mraassetp">
			 <input type="hidden" name="mode" value="mraassetp_update"></input>
			  <input type="hidden" name="raitem_id" id="insertNum" value="${vo.raitem_id}"></input>
			 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
			 <input type="hidden" name="ascu_id" id="ascu_id" value="${vo.ascu_id }"></input>
   	        	<input type="hidden" name="reloadPageName" value="#tabs-2"></input>
		 	<table class="insertTableL" style="width: 713px">
	   			<tfoot>
	   				<tr>
	   					<td>
	   						<div class="align-left subjectTitle"> ■ RA정보자산프로필</div>
	                     	<div class="align-right">
	                     	
	                     	<c:choose>
	                       		<c:when test="${sessionScope.magamSession[1].state !='Y'}">
	                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                       			<a href="#" class="button" onclick="javascript: riskIWrite('mraassetp');return false;"><span>저장</span></a>
	                       		</c:when>
	                       		<c:otherwise>
	                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
	                       		</c:otherwise>
	                       	</c:choose>
	                       	
	                     	<a href="#" class="button" onclick="javascript: riskICancleWriteTab('mraasset', 2)"><span>닫기</span></a>
	                     	</div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL" style="width: 713px">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col/>
	   				<col width="110px"/>
	   				<col/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<td class="titleName">RA자산코드</td>
	   					<td>
							 ${vo.raitem_id}
						</td>
						<td class="titleName">갱신일자</td>
						<td>
							${vo.raitem_date}
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RA자산명칭</td>
	   					<td>
							 ${vo.raitem_nm }
						</td>
						<td class="titleName">자산유형</td>
						<td>
							${vo.ak_nm2}
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RA자산소유자</td>
	   					<td>
							 ${vo.raitem_owner }
						</td>
						<td class="titleName">RA자산관리자</td>
						<td>
							${vo.raitem_manager}
						</td>
	   				</tr>
	   				<tr>
						<td class="titleName" style="vertical-align: middle">RA 자산 설명</td>
						<td colspan="3">
							<textarea class="read_textfiled" name="raitem_etc" rows="4" id="raitem_etc" readonly="readonly">${vo.raitem_etc }</textarea>
						</td>
					</tr>
	   			</tbody>
	   		</table>
	   		<br/>
	   		<table class="insertTableL" style="width: 713px">
	   			<tfoot>
	   				<tr>
	   					<td>
	   						<div class="align-left subjectTitle"> ■ RA정보 보안 요구 사항</div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL" style="width: 713px">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col/>
	   			</colgroup>
	   			<tbody>
	   			<%--
	   				<tr style="height: 30px;">
		   				<th style="vertical-align: middle;">기밀성 요구사항</th>
		   				<th style="vertical-align: middle;">무결성 요구사항</th>
		   				<th style="vertical-align: middle;">가용성 요구사항</th>
	   				</tr>
	   				 --%>
	   				
	   				<tr>
	   					<td class="titleName" style="vertical-align: middle;">기밀성 요구사항</td>
	   					<td>
							 <textarea class="textfiled" name="c_memo" rows="4" id="c_memo">${vo.c_memo }</textarea>
						</td>
					</tr>
					<tr>
	   					<td class="titleName" style="vertical-align: middle;">무결성 요구사항</td>
	   					<td>
							 <textarea class="textfiled" name="i_memo" rows="4"  id="i_memo">${vo.i_memo }</textarea>
						</td>
					</tr>
					<tr>
	   					<td class="titleName" style="vertical-align: middle;">가용성 요구사항</td>
	   					<td>
							 <textarea class="textfiled" name="a_memo" rows="4" id="a_memo">${vo.a_memo }</textarea>
						</td>
					</tr>
	   			</tbody>
	   		</table>
	   		<br/>
	   		<table class="insertTableL" style="width: 713px">
	   			<tfoot>
	   				<tr>
	   					<td>
	   						<div class="align-left subjectTitle"> ■ RA정보 가치평가</div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL" style="width: 713px">
	   			<tr>
	   				<td class="titleName">기밀성</td>
	   				<td>
	   					<select name="c_score" id="c_score" class="selectBox width97" onchange="javascript: mrainfopCiaSum()">
							<c:forEach  var="scoreList" items="${requestScope.scoreList}" varStatus="status">
								<option <c:if test="${scoreList.base_cnt == requestScope.vo.c_score }">selected</c:if> value="${scoreList.base_cnt }"><fmt:formatNumber value="${scoreList.base_cnt }" pattern="0"/></option>
							</c:forEach>
						</select>
	   				</td>
	   				<td class="titleName">무결성</td>
	   				<td>
	   					<select name="i_score" id="i_score" class="selectBox width97" onchange="javascript: mrainfopCiaSum()">
							<c:forEach  var="scoreList" items="${requestScope.scoreList}" varStatus="status">
								<option <c:if test="${scoreList.base_cnt == requestScope.vo.i_score }">selected</c:if> value="${scoreList.base_cnt }"><fmt:formatNumber value="${scoreList.base_cnt }" pattern="0"/></option>
							</c:forEach>
						</select>
	   				</td>
	   				<td class="titleName">가용성</td>
	   				<td>
	   					<select name="a_score" id="a_score" class="selectBox width97" onchange="javascript: mrainfopCiaSum()">
							<c:forEach  var="scoreList" items="${requestScope.scoreList}" varStatus="status">
								<option <c:if test="${scoreList.base_cnt == requestScope.vo.a_score }">selected</c:if> value="${scoreList.base_cnt }"><fmt:formatNumber value="${scoreList.base_cnt }" pattern="0"/></option>
							</c:forEach>
						</select>
	   				</td>
	   				<td class="titleName">보안 점수</td>
	   				<td>
	   					<input type='text' name='t_score' id='t_score' value='${vo.t_score}' size="8" readonly="readonly" style="width: 90%"></input>
	   				</td>
	   			</tr>
	   			<tr>
	   				<td class="titleName">기밀 등급</td>
	   				<td colspan="5">
	   					<select name="asc_id" id="asc_id" class="selectBox" onchange="javascript: mrainfopCiaSum()"  style="width: 77px;">
								<c:choose>
		   							<c:when test="${fn:length(ascList)!= 0}">
			   							<c:forEach  var="ascList" items="${requestScope.ascList}" varStatus="status">
											<option <c:if test="${ascList.asc_id == vo.asc_id }">selected</c:if> value="${ascList.asc_id }">${ascList.asc_level }</option>
										</c:forEach>
		   							</c:when>
		   							<c:otherwise>
		   								<option selected="selected" value="0">-----</option>
		   							</c:otherwise>
		   						</c:choose>
						</select>
						
	   				</td>
	   				<td class="titleName">보안 등급</td>
   					<td>
   						<input type="text" name="ascu_level" id="ascu_level" readonly="readonly" value="${vo.ascu_level }" style="width: 90%"></input>
   					</td>
	   			</tr>
	   		</table>
   		</form>
	</div>
</div>
</body>
</html>
